package com.annotation;

public class Test {
    public static void main(String[] args) {
        Filter f1 = new Filter();
        f1.setId(3232);
        f1.setAge(22);

        Filter f2 = new Filter();
        f2.setUserName("tom");

        Filter f3 = new Filter();
        f3.setCity("BJ, SZ");
        f3.setAge(23);

        String f1Query = MapperHandler.query(f1);
        System.out.println(f1Query);

        String f2Query = MapperHandler.query(f2);
        System.out.println(f2Query);

        String f3Query = MapperHandler.query(f3);
        System.out.println(f3Query);


        Filter2 filter2 = new Filter2();
        filter2.setId(243);
        filter2.setDeptName("Info");
        filter2.setLocName("Amoy");

        String filter2Q = MapperHandler.query(filter2);
        System.out.println(filter2Q);
    }
}
